package com.bwie.service.impl;

import com.bwie.mapper.ChangeMapper;
import com.bwie.pojo.R;
import com.bwie.pojo.po.ChangePo;
import com.bwie.service.ChangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChangeServiceImpl implements ChangeService {
    @Autowired
    private ChangeMapper changeMapper;
    @Override
    public R getChangeList(Integer interrogationId) {
        if(interrogationId==null){
            return R.err().msg("参数不能为空");
        }
        List<ChangePo> list = changeMapper.getChangeList(interrogationId);
        return R.ok().data(list);
    }
}
